() Parentheses (highest precedence) |
x[index], x[index:index] Subscription, slicing |
await x Await expression |
** Exponentiation |
+x, -x, ~x Positive, negative, bitwise NOT |
*, @, /, //, % Multiplication, matrix multiplication, division, floor division, modulus |
+, - Addition and subtraction |
<<, >> Bitwise shifts |
& Bitwise AND |
^ Bitwise XOR |
| Bitwise OR |
in, not in, is, is not, <, <=, >, >=, !=, == Comparisons, membership tests, identity tests |
not x Boolean NOT |
and Boolean AND |
or Boolean OR |
if-else Conditional expression |
lambda Lambda expression |
:= Assignment expression (walrus operator) (lowest precedence) |
Tutorials
© 2023 TutorialsBox.com. All rights reserved.